<template>
  <div>

    <el-form ref="editForm" :model="formFileds">
      <el-row :gutter="24">
<!--                <el-col :span="12">-->
<!--                  <el-form-item>-->
<!--                    <el-input v-model="formFileds.text"></el-input>-->
<!--                  </el-form-item>-->
<!--                </el-col>-->
<!--                <el-col :span="2">-->
<!--                  <el-form-item>-->
<!--                    <el-button type="primary" @click="onSubmit">查询-->
<!--                    </el-button>-->
<!--                  </el-form-item>-->
<!--                </el-col>-->
<!--                <el-col :span="2">-->
<!--                  <el-form-item>-->
<!--                    <el-button type="primary" @click="add">增加-->
<!--                    </el-button>-->
<!--                  </el-form-item>-->
<!--                </el-col>-->

      </el-row>
    </el-form>

    <!--表格内容-->
    <el-table ref="list" :data="tableData" style="width: 100%; margin-bottom: 5px;" border stripe
              highlight-current-row :default-sort="{prop: 'date', order: 'descending'}" @row-click="handleRowClick"
              @select-all="handleCheckedAllAndCheckedNone" @select="handleCheckedAllAndCheckedNone"
              :header-cell-style="{textAlign:'center'}" :cell-style="{textAlign:'center'}">
      <el-table-column property="pmqy" label="拍卖企业">
      </el-table-column>
      <el-table-column property="lxr" label="联系人">
      </el-table-column>
      <el-table-column property="phone" label="联系电话">
      </el-table-column>
      <el-table-column property="photo" label="拍品图片">
      </el-table-column>
      <el-table-column property="qpj" label="起拍价">
      </el-table-column>
      <el-table-column property="jjfd" label="加价幅度">
      </el-table-column>
      <el-table-column property="bdlx" label="标的类型">
      </el-table-column>
      <el-table-column property="pmxs" label="拍卖形式">
      </el-table-column>
      <el-table-column label="操作" width="150px">
        <template slot-scope="scope">
          <el-button circle icon="el-icon-edit-outline" type="primary" title="查看详情" size="small"
                     @click="rowEdit(scope.$index, scope.row)"></el-button>
        </template>
      </el-table-column>
      <el-table-column label="发票" width="150px">
        <template slot-scope="scope">
          <el-button  type="primary" title="开发票" size="small"
                     @click="to2(scope.row)">申请</el-button>
        </template>
      </el-table-column>
      <el-table-column label="成交确认书" width="150px">
        <template slot-scope="scope">
          <el-button circle icon="el-icon-edit-outline" type="primary" title="申请成交确认书" size="small"
                     @click="rowEdit(scope.$index, scope.row)"></el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import {delList, getList} from "@/api/personalCenter/personalCenter";

export default {
  name: "participate",
  components: {

  },
  data(){
    return{
      formFileds:{},
      tableData:[
        {
          id: '',
          pmhmc: '',
          pmqy: '',
          lxr: '',
          phone: '',
          qpj: '',
          jjfd: '',
          bzj: '',
          wk: '',
          rjsyf: '',
          photo: '',
          bdlx: '',
          pmxs: '',
          bdzt: '',
          userid: '',
          zt: '',
          bdbh: '',
          yhlx: '',
          yxjmr: '',
          rjsyfjnzt: ''
        }
      ],
      mine: [],
    }
  },
  methods:{
    getList(){
      let userid = 2;
      let zt = '我的参拍';
      this.param = 'userid='  + userid + '&zt=' + zt;
      getList(this.param).then((res) => {
        if(res){
          console.log(res.data);
          this.total = res.data.total;
          this.tableData = res.data;
        }
        console.log('11:' + this.tableData);
      });

    },
    to2(item){
      this.$router.push({
        path: './invoice'
      });
    }
  },
  //页面加载
  mounted(){
    this.getList();
  }
}
</script>

<style scoped>

</style>